{include file="public/header" /}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.css"}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.js"}
<style>
    #des, #des input {
        width: 40px;
        text-align: center;
    }

    #id {
        width: 78px;
    }

    .bs-checkbox {
        width: 36px;
        height: 40px
    }

    .fixed-table-toolbar .columns, .fixed-table-toolbar .search {
        margin-left: 0px;
        margin-top: 0px
    }

    #title span {
        float: right;
        margin-left: 3.333px;
    }

    .search {
        margin-bottom: 0px !important;
    }

    .asdlkjasd {
        background: #1ab394;
        color: #fff
    }

</style>
 <body class="gray-bg">
 <div class="wrapper wrapper-content {:config('adminClass.main')}">
    <div class="ibox float-e-margins">
        {include file="public/tophead"}
        {include file="public/top" /}
        <div class="ibox-content">
        {include file="public/topsection"}
            <div class="row row-lg">
                <div class="col-sm-12">
                    <div class="fixed-table-toolbar">
                        <a class="btn btn-default btn-outline {present name='key'}{eq name='key' value=''}asdlkjasd{/eq}{/present}" href="{:url('lists')}{present name='status'}/status/{$status}{/present}">全部</a>
                        <a class="btn btn-default btn-outline {present name='key'}{eq name='key' value='fate_realavatar_limit'}asdlkjasd{/eq}{else /}asdlkjasd{/present}" href="{:url('lists',['key'=>'fate_realavatar_limit'])}{present name='pbanned'}/pbanned/{$pbanned}{/present}">只推送真人头像</a>
                        <a class="btn btn-default btn-outline {present name='key'}{eq name='key' value='fate_realname_limit'}asdlkjasd{/eq}{else /}asdlkjasd{/present}" href="{:url('lists',['key'=>'fate_realname_limit'])}{present name='pbanned'}/pbanned/{$pbanned}{/present}">只推送实名用户</a>
                        <a class="btn btn-default btn-outline {present name='key'}{eq name='key' value='unsmstip_switch'}asdlkjasd{/eq}{/present}" href="{:url('lists',['key'=>'unsmstip_switch'])}{present name='pbanned'}/pbanned/{$pbanned}{/present}">拒绝短信通知</a>
                        <a class="btn btn-default btn-outline {present name='key'}{eq name='key' value='voice_switch'}asdlkjasd{/eq}{/present}" href="{:url('lists',['key'=>'voice_switch'])}{present name='pbanned'}/pbanned/{$pbanned}{/present}">拒绝语音通话请求</a>
                        <a class="btn btn-default btn-outline {present name='key'}{eq name='key' value='video_switch'}asdlkjasd{/eq}{/present}" href="{:url('lists',['key'=>'video_switch'])}{present name='pbanned'}/pbanned/{$pbanned}{/present}">拒绝视频通话请求</a>
                    </div>
                    <div class="fixed-table-toolbar">
                        <a class="btn btn-default btn-outline {present name='pbanned'}{eq name='pbanned' value='0'}asdlkjasd{/eq}{/present}" href="{:url('lists',['pbanned'=>0])}{present name='key'}/key/{$key}{/present}">全部</a>
                        <a class="btn btn-default btn-outline {present name='pbanned'}{eq name='pbanned' value='1'}asdlkjasd{/eq}{else /}asdlkjasd{/present}" href="{:url('lists',['pbanned'=>1])}{present name='key'}/key/{$key}{/present}">排除已封号</a>
                    </div>
                    <div class="fixed-table-toolbar">
                        <form  method="get" action="">
                            <div class="pull-left search">
                                <div class="columns columns-right btn-group pull-left" >
                                </div>
                                {php}
                                if(input('?param.search_typeid') || input('?param.search_name')){
                                {/php}
                                <div class="pull-right search">
                                    <a class="btn btn-w-m btn-link" href="{:url('lists')}">返回管理</a>
                                </div>{php}
                                }
                                {/php}
                                <div class="pull-right search">
                                    <button style="border-radius:0px; border:1px solid #e5e6e7; border-left:0px" class="btn btn-default btn-outline" type="submit">搜索</button>
                                </div>
                                <div class="pull-right search">
                                    <input class="form-control input-outline" id="filter" type="text"
{php}
if(input('?param.search_name')){
            if(input('param.search_name')){
               echo "value='".input('search_name')."'";
            } 
        }
{/php}
                                     name="search_name" placeholder="搜索">
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="example">
                        <form class="form-horizontal" method="post">
                        <table data-toggle="table">
                            <thead>
                                <tr>
                                    <th data-align="center">用户</th>
                                    <th data-align="center">只推送真人头像</th>
                                    <th data-align="center">只推送实名用户</th>
                                    <th data-align="center">拒绝短信通知</th>
                                    <th data-align="center">拒绝语音通话请求</th>
                                    <th data-align="center">拒绝视频通话请求</th>
                                    <th data-align="center">管理</th>
                                </tr>
                            </thead> 
                            <tbody id="form">
                                {volist name="data" id="v"}
                                <tr id="id{$v.id}" class="class">
                                    <td >
                                        <a onclick="member('{$v.user_id}')" style="color:#40BCF7">{$v.name}</a><br />(ID:{$v.user_id})({$v.sex})
                                    </td>
                                    <td> {$v.fate_realavatar_limit?'是':''} </td>
                                    <td> {$v.fate_realname_limit?'是':''} </td>
                                    <td> {$v.unsmstip_switch?'是':''} </td>
                                    <td> {$v.voice_switch==0?'是':''} </td>
                                    <td> {$v.video_switch==0?'是':''} </td>
                                    <td>
                                        <div onclick="add('{:url('member/personal',['id'=>$v.user_id,'url'=>-1])}')" class="btn btn-primary btn-xs dropdown-toggle">编辑配置
                                        </div>
                                    </td>
                                </tr>
                                {/volist}
                            </tbody>                          

                        </table>
                        </form>
                    </div>
                </div>  
            </div>
            <hr>
            <div class="row row-lg">
                <div class="col-sm-6 pages">{$page}</div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
<script type="text/javascript">

function member(id)
{
    layui.use('layer', function(){
        var layer = layui.layer;
        layer.open({
            title :'预览',
            area: ['100%', '100%'],
            type: 2,
            content: '{:url("member/index")}?search=id&name='+id
        });
    });
}
</script>
 